(function() {
    //描述对象类型
    type Mytype={
        name: string;
        age:number;
        
    };
    //接口也可以当成类型声明使用，接口可以声明多次
    interface myInterface{
        name: string;
        age:number;
    }

    const obj:myInterface ={
        name:'aaa',
        age:10
    };

    interface myInter{
        name:string;
        sayhello():void;
    }
    
})();